import { ComponentOptions, ComponentProps, RenderFn } from './types.js'; /** Symbol key used to attach onDestroyFns to a component container. */ export declare const DESTROY_KEY: unique symbol; /** * Define a stateful component. * setup() runs ONCE — call signal(), onInit(), onMount(), onDestroy(), useHead() here. * setup() returns a render fn that re-runs when any subscribed signal changes. * options.hydrate controls island strategy (default: 'static'). * * @example * const Counter = component(() => { * const [count, setCount] = signal(0); * return () => ( * * ); * }, { hydrate: 'interactive' }); */ export declare function component

(setup: (props: P & ComponentProps

) => RenderFn, options?: ComponentOptions): (props?: P & ComponentProps

) => Element; export { component as defineComponent };